<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ include file="/views/commons/taglibs.jsp" %>
<c:choose>
<c:when test="${!empty dataList && fn:length(dataList) ne 0}">
<div class="article ">
	<h2>
		<span>部分项目列表</span>
	</h2>
	<div class="panel panel-default pro-list">
		<div class="panel-body">
			<table class="table table-hover ">
				<thead>
					<tr>
						<th>项目名</th>
						<th>上线平台</th>
						<th>项目类型</th>
						<th>地点</th>
						<th>平台链接</th>
						<th>拆解人数</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					<c:forEach var="project" items="${dataList}" varStatus="index">
					<tr>
						<td><a href="<%=path%>/check/analyze/toInsert?platformType=${project.platformType}&projectId=${project.projectId}">${project.projectName}</a></td>
						<td>${project.platformName}</td>
						<td>${project.platformTypeName}</td>
						<td>${project.platformProvince}${project.platformCity}${project.platformAddress}</td>
						<td><a href="${project.platformUrl}" target="_blank">${project.platformUrl}</a></td>
						<td>${project.analyzeNum}</td>
						<td><a class="btn btn-sm btn-primary" href="<%=path%>/check/analyze/toInsert?platformType=${project.platformType}&projectId=${project.projectId}">拆解</a></td>
					</tr>
					</c:forEach>
				</tbody>
			</table>
		</div>
	</div>
</div>
<p:pagination pageNo="${paramMap.pageNo}" pageCount="${paramMap.pageCount}" queryFunction="queryProjectList"></p:pagination>
</c:when>
<c:otherwise>
<div class="article ">
	<h2>
		<span>可拆解项目</span>
	</h2>
	<div class="panel panel-default pro-list">
		<div class="panel-body">
			<table class="table table-hover ">
				<thead>
					<tr>
						<th>项目名</th>
						<th>上线平台</th>
						<th>项目类型</th>
						<th>地点</th>
						<th>平台链接</th>
						<th>拆解人数</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					<tr>
						<td colspan="7">暂无数据</td>
					</tr>
				</tbody>
			</table>
		</div>
	</div>
</div>
</c:otherwise>
</c:choose>